public class LeafNode implements BinNode{
    private Object var;
    private boolean B = true;

    public LeafNode(Object val){
        var = val;
    }
    public Object element(){
        return var;
    }
    public Object setElement(Object v){
        return var = (String)v;
    }
    public BinNode left(){
        return null;
    }
    public BinNode right(){
        return null;
    }
    public BinNode setLeft(BinNode p){
        return null;
    }
    public BinNode setRight(BinNode p){
        return null;
    }
    public boolean isLeaf(){
        return B;
    }       
}
